package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.OilEngine;
import com.shensi.api.admin.domian.station.dto.OilEngineDto;
import com.shensi.api.admin.domian.station.dto.OilOmeterDto;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface OilOmeterClient {

    @PostMapping("/ometer/save")
    public AjaxResult saveOilOmeter(@RequestBody OilOmeterDto oilOmeter);

    @PostMapping("/ometer/update")
    public AjaxResult updateOilOmeter(@RequestBody OilOmeterDto oilOmeter);

    @PostMapping("/ometer/list")
    public TableDataInfo selectOilOmeterList(@RequestBody OilOmeterDto oilOmeter);

    @GetMapping("/ometer/delete")
    public AjaxResult deleteOilOmeter(@RequestParam("ometerId") Long ometerId);

}
